package com.mettle.loyaltycard.model;
 
public enum MembershipType {
	GOLD(50000, 25, 500.0, null), SILVER(25000, 2, 100.0, MembershipType.GOLD), NORMAL(0, 1, 100.0, MembershipType.SILVER);
	private int threshold;
	private int pointsPerStep;
	private Double step;
	private MembershipType nextLevel;
	public MembershipType getNextLevel() {
		return nextLevel;
	}
	
	private MembershipType(int threshold, int pointsPerStep, Double step, MembershipType level) {
		this.threshold =  threshold;
		this.pointsPerStep = pointsPerStep;
		this.step = step;
		this.nextLevel = level;
	}
	public int getThreshold() {
		return threshold;
	}

	public int getPointsPerStep() {
		return pointsPerStep;
	}

	public Double getStep() {
		return step;
	}
}
